<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue.js"></script>
</head>
<body>
<div id="div_id">
    <!--延迟加载-->
    <input type="text" v-model.lazy="message" />
    <h2>{{message}}</h2>
    <!--限制输入的是数字(如果直接使用 type="number" 输入的仍然是string)-->
    <input type="number" v-model.number="age" />
    <h2>{{age}}-{{typeof age}}</h2>
</div>
<script>
    const app=new Vue({
        el:"#div_id",
        data:{
            message:"11",
            age:1
        }
    })
</script>
</body>
</html>